package com.usts.edu.studenttemp.service;

import com.usts.edu.studenttemp.dto.SysUser;
import com.usts.edu.studenttemp.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Guanzhong Hu
 * Date :2020/5/30
 * Description :
 * Version :1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private SysUserMapper sysUserMapper;
    @Override
    public SysUser selectUserPasswordByName(String loginNumber) {
        return sysUserMapper.selectUserPasswordByName(loginNumber);
    }

    @Override
    public Integer updateUserPassword(SysUser sysUser) {
        return sysUserMapper.updateByPrimaryKeySelective(sysUser);
    }
}
